<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>发布二手车信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	<style type="text/css">
		.red{color:red;}
		#main {
			width: 900px;
			height: auto;
			margin: auto;
			text-align: center;
		}
		tr{height: 40}

	</style>
	<script type="text/javascript">
		function save(){
			var title = document.getElementById("title").value;
			var gearbox = document.getElementById("gearbox").value;
			var dispalcementSize = document.getElementById("dispalcementSize").value;
			var mileageSize = document.getElementById("mileageSize").value;
			var money = document.getElementById("money").value;
			var address = document.getElementById("address").value;
			var telephone = document.getElementById("telephone").value;
			var name = document.getElementById("name").value;
			var content = document.getElementById("content").value;
			if("" == title.trim()||gearbox == -1||dispalcementSize==-1||mileageSize==-1||money==-1||address==-1||telephone.trim()==""||name.trim()==""||content.trim()==""){
				alert("请将打*号的内容填写完整");
			}else{
				document.getElementById("form").submit();
			}
		}
	
	</script>
	</head>
	<body> 
		<div id="main">
			<form action="usedcar/viewBuyUsedCar_add" method="post" id="form">
					<table cellpadding="0" cellspacing="0" class="box1" id="formTb">
        <tr>
            <td class="t">
                <b class="red">*</b> 标 题：
            </td>
            <td>
                <input type="text" name="title" id="title" name="title" class="txt w106"
                     size="50"/>
                <span id="Title_Tip"></span>
            </td>
        </tr>
        
        <tr>
            <td class="t">
                <b class="red">*</b> 变速器：
            </td>
            <td>
	            <select id="gearbox" name="gearbox" relationid="tagul" id="biansuqi" f="{0}" class="txt w106" style="width:100">
	                <option value="-1">请选择</option>
					<option value="0">手动</option><option value="1">全自动</option><option value="2">手自一体</option><option value="3">CVT</option><option value="4">不限</option>
	            </select>&nbsp;&nbsp;&nbsp;
                <b class="red">*</b> 排量范围：
                <select id="dispalcementSize" name="dispalcementSize" relationid="tagul" f="{0}"  class="txt w106" style="width:100">
	                <option value="-1">请选择</option>
					<option value="0">1.0升以下</option><option value="1">1.0-1.6升</option><option value="2">1.6-2.2升</option><option value="3">2.2-2.8升</option><option value="4">2.8-4.0升</option><option value="5">4.0升以上</option>
	            </select>
                <span id="biansuqi_Tip"></span>
            </td>
        </tr>
        <tr>
            <td class="t">
                <b class="red">*</b> 里程要求：
            </td>
            <td>
            	<select id="mileageSize" name="mileageSize" relationid="tagul" id="licheng" f="{0}"  class="txt w106" style="width:100">
	                <option value="-1">请选择</option>
					<option value="0">1万公里内</option><option value="1">3万公里内</option><option value="2">5万公里内</option><option value="3">8万公里内</option><option value="4">10万公里内</option><option value="5">15万公里内</option><option value="6">20万公里内</option><option value="7">25万公里内</option><option value="8">30万公里内</option><option value="9">不限里程</option>
	            </select>&nbsp;&nbsp;&nbsp;
                <b class="red">*</b> 期望价格：
                <select id="money" name="money" relationid="tagul" id="jiage" f="{0}"  class="txt" style="width:100">
	                <option value="-1">请选择</option>
					<option value="0">1万元以内</option><option value="1">1-2万元</option><option value="2">2-3万元</option><option value="3">3-5万元</option><option value="4">5-8万元</option><option value="5">8-12万元</option><option value="6">12-18万元</option><option value="7">18-25万元</option><option value="8">25-40万元</option><option value="9">40万元以上</option>
	            </select>
                <span id="licheng_Tip"></span>
            </td>
        </tr>
        <tr>
            <td class="t"> <b class="red">*</b> 区域地段：</td>
            <td><select id="address" name="address" class="txt w106" style="width:100">
                            <option value="0">--区域--</option>
                            <option>西湖</option>
                            <option>拱墅</option>
                            <option>江干</option>
                            <option>上城</option>
                            <option>下城</option>
                            <option>余杭</option>
                            <option>萧山</option>
                            <option>滨江</option>
                            <option>建德</option>
                            <option>富阳</option>
                            <option>临安</option>
                            <option>桐庐</option>
                            <option>淳安</option>
                            <option>杭州周边</option>
                            </select>
        </td></tr>
        <tr>
            <td class="txt w106">
                <b class="red">*</b> 补充说明：
            </td>
            <td><input id="content" name="content" type="text" size="50"></td>
        </tr>
        <tr>
            <td class="t">
                <b class="red">*</b> 联系电话：
            </td>
            <td>
                <input type="text" class="txt w106" id="telephone" name="telephone" value=''  Except="" />
                <span id="Phone_Tip"></span>
            </td>
        </tr>
        <tr>
            <td class="t">
                <b class="red">*</b> 联系人：
            </td>
            <td>
                <input type="text" class="txt w106" name="name" id="name" class="text2"  Except="" maxlength="6" />
            </td>
        </tr><tr>
          <td class="t"></td>
          <td><input type="button" id="fabu" onclick="save()" class="fabu1" value="确定" ct="submit" />
                       </td>
        </tr>
        
					</table>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
			</form>
		</div>
	</body>
</html>
